cmake_minimum_required(VERSION 2.6)

project(shiokaze-clock-applet)

include_directories(include)
include_directories(.)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

qt4_wrap_cpp(MOC_SOURCES include/ClockWidget.hh)

add_library(shiokaze-clock-applet SHARED source/applet.cc
										 source/ClockWidget.cc
										 ${MOC_SOURCES})
target_link_libraries(shiokaze-clock-applet shio ${QT_LIBRARIES})

INSTALL(TARGETS shiokaze-clock-applet
  RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
  LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/share/shiokaze/applets
  ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/share/shiokaze/applets
)
